import "babel-polyfill";
import Vue from 'vue'; 
import * as utils from 'commons/js/utils.js';
import router from './router';
import store from './vuex';
import axios from './service';
import {api} from './service/api';
import App from './App';

import iview from 'iview';
import 'iview/dist/styles/iview.css';
import 'commons/font/iconfont.css';//字体图标样式
import 'commons/less/common.less';//通用样式

// Vue.config.productionTip = false
// Vue.config.silent = false

Vue.prototype.$utils = utils;
Vue.prototype.$ajax = axios;
Vue.prototype.$api = api;

//配置全局弹框的默认显示时间（3秒）和顶部距离（100px）
iview.Message.config({
    top: 100,
    duration: 3
});

Vue.use(iview);

new Vue({
    el: '#app',
    store,
    router,
    template: '<App/>',
    components: {App}
})